package com.finalcial.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.finalcial.dao.WorkDao;
import com.finalcial.service.WorkingDetailsService;

@Service
public class WorkingDetailsServiceImpl implements WorkingDetailsService{

	@Autowired
	private WorkDao workDao;
	
	/**
	 * 点击一行获取代办信息--详情界面基本信息
	 */
	@Override
	public List<Map<String, Object>> getEssentialInformation(String reimbursementId) {
		return workDao.getEssentialInformation(reimbursementId);
	}

	/**
	 * 点击一行获取待办信息--详情界面明细信息(非差旅界面)
	 */
	@Override
	public List<Map<String, Object>> getDetailInformation(String reimbursementId, Integer userId) {
		return workDao.getDetailInformation(reimbursementId, userId);
	}

	/**
	 * 点击一行获取待办信息--详情界面明细信息（差旅界面）
	 */
	@Override
	public List<Map<String, Object>> getDetailInformationBytravel(String reimbursementId, Integer userId) {
		return workDao.getDetailInformationBytravel(reimbursementId, userId);
	}
	

}
